package com.ryskoo.catering.coupon.service;

import com.ryskoo.catering.coupon.domain.CouponPO;
import com.ryskoo.framework.core.bean.QueryMessageDTO;
import com.ryskoo.framework.core.service.IBasicService;

import java.util.List;

public interface ICouponService extends IBasicService<CouponPO> {
    List<CouponPO> getListForVendorByVendorUuid(String vendorUuid);

    List<CouponPO> getListForVendorByVendorAndCustomer(String vendorUuid, String customerUuid);

    void receive(String couponUuid, String customerUuid);

    List<CouponPO> queryListAndProductByCondition(QueryMessageDTO qm);

    /**
     * 给会员发送优惠券
     * @param memberUuidArr
     * @param couponUuidArr
     */
    void sendCouponsToMembers(String[] memberUuidArr,String[] couponUuidArr);
}
